import java.net.*;;

public class UDPServer {
    public static void main(String[] args) throws Exception {
        DatagramSocket server = new DatagramSocket(8000);
        String message = "www.yootk.com";
        DatagramPacket packet = new DatagramPacket(message.getBytes(),0,message.length(), InetAddress.getByName("127.0.0.1"),9999);
        server.send(packet);
        System.out.println("[UDPServer]数据信息发送完毕……");
        server.close();
    }
}
